package com.lxz.aiagentbackend.demo.invoke;

import jakarta.annotation.Resource;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.messages.AssistantMessage;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.ai.chat.model.ChatResponse;
import org.springframework.ai.chat.model.Generation;
import org.springframework.ai.chat.prompt.Prompt;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: 小新
 * @Date: 2025/6/6 11:24
 * @Description:
 * @Version: v1.0
 */
@Component
public class SpringAIInvoke  {
    private final ChatClient chatClient;

    public SpringAIInvoke(ChatClient.Builder builder) {
        this.chatClient = builder
                .defaultSystem("你是健身顾问")
                .build();
    }
}
